package org.zht.dormpro.dorm.service;

import org.zht.dormpro.auth.bean.PageBean;
import org.zht.dormpro.dorm.bean.MajorDTO;
import org.zht.dormpro.dorm.model.TbMajor;

import java.util.ArrayList;
import java.util.List;

public interface IMajorService {

    List<MajorDTO> getMajorByCondition(PageBean pageBean);

    boolean addMajor(MajorDTO majorDTO);

    boolean deleteMajor(Integer id);

    boolean batchRemoveMajor(ArrayList<String> majIds);

    TbMajor getMajorById(Integer id);

    boolean editMajor(MajorDTO majorDTO);

    List<TbMajor> getAllMajor(int i);

    List<TbMajor> getMajorByCollegeId(String colId);
}
